<template>
  <div class="container">
    <view>
        <h1 class="title">全员安全教育培训：构建风险防控新防线</h1>
    </view>
    
  </div>
</template>

<script >
import { getInfo } from "@/api/article/index";
import { created } from "uview-ui/libs/mixin/mixin";
export default {
  data() {
    return {
        articleId:0,
    };
  },
  onLoad(options) {
    // 获取navigateTo携带的参数
    this.articleId = options.id; // 获取id并存储
    console.log(this.articleId)
    //获取文章数据
    this.getArticleInfo();
  },

  mounted() {
    
  },
  methods:{
   async getArticleInfo(){
      const {data,code,msg}  =  await getInfo({articleContentId:this.articleId});
    }


  }
}
</script>

<style scoped>
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.content {
  margin-bottom: 15px;
  font-size: 16px;
}
</style>